package com.hnluchuan.bmjlearning.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.hnluchuan.core.model.BaseModel;

import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 服务包
 */
@Entity
@Table(name = "t_service_package") 
public class ServicePackage extends BaseModel {
	private static final long serialVersionUID = 1L;
	
	public ServicePackage() {
	}
	
	public ServicePackage(Long id) {
		this.id = id;
	}
	
	/**
	 * id
	 */
	@Id
	@GeneratedValue
	@Column(name = "id")
	private Long id;
	/**
	 * 状态，0禁用，1启用
	 */
	@Column(name = "status")    		
	private Integer status;
	/**
	 * 期限（天）
	 */
	@Column(name = "expire_days")    		
	private Integer expireDays;
	/**
	 * 服务包名称
	 */
	@Column(name = "name")    		
	private String name;
	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern = "")
	@Column(name = "created")
	private Date created;
	/**
	 * 服务包类型
	 */
	@Column(name = "type")
	private Integer type;
	// fields end
	
	/** id */
	public Long getId() {
    	return id;
    }
    /** id */
    public void setId(Long id) {
    	this.id = id;
    }
	/** 状态，0禁用，1启用 */
	public Integer getStatus() {
    	return status;
    }
    /** 状态，0禁用，1启用 */
    public void setStatus(Integer status) {
    	this.status = status;
    }
	/** 期限（天） */
	public Integer getExpireDays() {
    	return expireDays;
    }
    /** 期限（天） */
    public void setExpireDays(Integer expireDays) {
    	this.expireDays = expireDays;
    }
	/** 服务包名称 */
	public String getName() {
    	return name;
    }
    /** 服务包名称 */
    public void setName(String name) {
    	this.name = name;
    }
	/** 创建时间 */
	public Date getCreated() {
    	return created;
    }
    /** 创建时间 */
    public void setCreated(Date created) {
    	this.created = created;
    }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
